package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the t_book database table.
 * 
 */
@Entity
@Table(name="t_book")
@NamedQuery(name="TBook.findAll", query="SELECT t FROM TBook t")
public class TBook implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id

	
	private String bid;

	private String author;

	private String bname;

	private int booksize;

	private BigDecimal currPrice;

	private BigDecimal discount;

	private int edition;

	@Column(name="image_b")
	private String imageB;

	@Column(name="image_w")
	private String imageW;

	private int orderBy;

	private int pageNum;

	private String paper;

	private String press;

	private BigDecimal price;

	private String printtime;

	private String publishtime;

	private int wordNum;

	//bi-directional many-to-one association to TCategory
	@ManyToOne
	@JoinColumn(name="cid")
	private TCategory TCategory;

	public TBook() {
	}

	public String getBid() {
		return this.bid;
	}

	public void setBid(String bid) {
		this.bid = bid;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getBname() {
		return this.bname;
	}

	public void setBname(String bname) {
		this.bname = bname;
	}

	public int getBooksize() {
		return this.booksize;
	}

	public void setBooksize(int booksize) {
		this.booksize = booksize;
	}

	public BigDecimal getCurrPrice() {
		return this.currPrice;
	}

	public void setCurrPrice(BigDecimal currPrice) {
		this.currPrice = currPrice;
	}

	public BigDecimal getDiscount() {
		return this.discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public int getEdition() {
		return this.edition;
	}

	public void setEdition(int edition) {
		this.edition = edition;
	}

	public String getImageB() {
		return this.imageB;
	}

	public void setImageB(String imageB) {
		this.imageB = imageB;
	}

	public String getImageW() {
		return this.imageW;
	}

	public void setImageW(String imageW) {
		this.imageW = imageW;
	}

	public int getOrderBy() {
		return this.orderBy;
	}

	public void setOrderBy(int orderBy) {
		this.orderBy = orderBy;
	}

	public int getPageNum() {
		return this.pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public String getPaper() {
		return this.paper;
	}

	public void setPaper(String paper) {
		this.paper = paper;
	}

	public String getPress() {
		return this.press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getPrinttime() {
		return this.printtime;
	}

	public void setPrinttime(String printtime) {
		this.printtime = printtime;
	}

	public String getPublishtime() {
		return this.publishtime;
	}

	public void setPublishtime(String publishtime) {
		this.publishtime = publishtime;
	}

	public int getWordNum() {
		return this.wordNum;
	}

	public void setWordNum(int wordNum) {
		this.wordNum = wordNum;
	}

	public TCategory getTCategory() {
		return this.TCategory;
	}

	public void setTCategory(TCategory TCategory) {
		this.TCategory = TCategory;
	}

}